import tool from 'src/util/tool'
import util from '_util/index';

const state = {

    hideFields: {},
    selected_ids: {},
    colorConf: {},
    current_page: {},
    list_data: [],

    filterData: {},//过滤条件
    search_fval: {},
    search_fval_tmp: {},
    pageData: {
        total: {}
    }

};
const getters = {}
const mutations = {


    set_current_page(state, current_page){
        state.current_page = current_page
    },
    set_list_data(state, list_data){
        state.list_data = list_data
    },
    set_selected_ids(state, selected_ids){
        state.selected_ids = selected_ids
    },
    setHideFields(state, hideFields){
        state.hideFields = hideFields
    },
    set_search_fval_tmp(state, search_fval_tmp){
        state.search_fval_tmp = search_fval_tmp
    },
    set_search_fval(state, search_fval){
        state.search_fval = search_fval
    },
    set_colorConf(state, colorConf){
        state.colorConf = colorConf
    },

    //搜索条件
    setFilter({dispatch, commit, state, rootState}, arg){

    },
    //分页相关
    setPage({dispatch, commit, state, rootState}, arg){

    }

}
const actions = {}

export default{
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}
